<ui:component xmlns="http://www.w3.org/1999/xhtml"  
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.prime.com.tr/ui"> 
    
<p:panel header="Notícias" toggleable="true" 
    toggleSpeed="500"  
    closeSpeed="2000"   
    widgetVar="panel"> 
     
<p:imageSwitch effect="fade" slideshowAuto="true" slideshowSpeed="7000">  
    <ui:repeat value="#{noticiaBean.noticiasHomologadas}" var="noticia" varStatus="current">  
		<h:panelGrid columns="1">  
		<h:outputText id="titulo"
				value="#{noticia.titulo}" style="font-weight:bold;"/>
		<p:separator/>	
		<h:outputText id="conteudo"
				value="#{noticia.conteudo}" />	
		</h:panelGrid>		
    </ui:repeat>  
</p:imageSwitch> 

</p:panel>
</ui:component>